home *** CD-ROM | disk | FTP | other *** search
- property mys, x, y, z, mywidth, myheight, xadd, yadd, zadd, rx, ry, rz, mymember, mdown, this
- global scale, xoff, yoff, zoff, gwind
-
- on exitFrame
- gwind = gwind + random(10000) + [1, -1][random(2)]
- if abs(gwind) > 10 then
- gwind = 2
- end if
- go(the frame)
- if y < -1000 then
- y = random(100) + yoff + 500
- mdown = random(5) + 3
- x = random(1000) * getAt(list(1, -1), random(2))
- z = random(700)
- this = z / 100
- end if
- x = x + sin(this)
- this = this + 0.01
- y = y - mdown
- mz = z + zoff + zadd
- if mz = 0 then
- mz = 0.00000001
- end if
- xp = x * scale / mz
- yp = y * scale / mz
- set the locH of sprite mys to xp + xoff
- set the locV of sprite mys to yoff - yp
- set the width of sprite mys to mywidth * scale / mz * 1.5
- set the height of sprite mys to myheight * scale / mz * 1.5
- end
-